<?php
	include('header.php');
	$style = $controller->getStyle();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<meta name="author" content="Hocine Sarah, Breuil Jonathan, Dourthe Aymeric"/>
<meta name="revisit-after" content="15 days"/>
<meta name="publisher" content="Polytech"/>
<meta name="date-creation-ddmmyyyy" content="16042010"/>
<meta name="Robots" content="all"/>
<meta name="Rating" content="General"/>
<meta http-equiv="Content-Language" content="fr"/>
<meta http-equiv="Content-type" content="text/html;charset=utf-8"/>
<meta name="location" content="France, FRANCE"/>
<meta name="expires" content="never"/>
<meta name="Distribution" content="Global"/>
<meta name="Audience" content="General"/>
<title>
<?php
	$parser = $model->get_parser();
	echo ($parser == null)? 'Simple Acess Wiki':utf8_decode($parser->__get('pageTitle'));
?>
</title>
<link href="view/style/stylesheet.css" type="text/css" rel="stylesheet" />
<style type="text/css">
	<?php
		if(!isset($_GET['page']) || $_GET['page']!='parametrage') 
			echo 'body {',
					'background-color : ',$style['bgColor'],';',
					'color : ',$style['color'],';',
					'font-size : ',$style['fontSize'],';',
					'font-weight : ',$style['fontWeight'],';',
					'font-family : ',$style['fontFamily'],';',
					'letter-spacing : ',$style['letterSpacing'],';',
				'}',
				'a {',
					'color : ',$style['linkColor'],';',
				'}',
				'input,select{',
					'background-color : ',$style['linkColor'],';',
					'color : ',$style['bgColor'],';',
					'border-color : ',$style['color'],';',
				'}';
				
				
	?>
</style>
</head>
<body onload="document.getElementById('input_recherche').focus()">
	<?php if(isset($includePage['footer'])){?>
	<div class="bodyContent">
		 <?php include($includePage['content']);?>
		<hr />
		<?php if(isset($includePage['footer'])){?>
		<div class="footer">
			<?php include($includePage['footer']);?>
		</div>
		<?php }?>
	</div>
	<?php }else include($includePage['content']);?>
	<div class="header">
	<?php if(isset($includePage['nav2'])) {?>
	<div class="menu">
		<?php include($includePage['nav2']); ?>
	</div>
	<?php }?>
	<?php if(isset($includePage['nav1'])) {?>
	<div class="recherche">
		<?php include($includePage['nav1']); ?>
		<hr />
	</div>
	<?php }?>
	</div>
</body>
</html>